import http from '@/utils/http.js'

// 支付接口
export const apiAliPay = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/pay/aliPay`,
        data
    })
}

// 支付接口
export const apiStripePay = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/pay/stripe`,
        params
    })
}


// 创建订单
export const createOrder = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/order/createOrder`,
        data
    })
}

// 单详情
export const orderDetail = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/order/detail`,
        params
    })
}


// 询订单
export const selectOrder = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/order/select`,
        data
    })
}


// 离线支付方式查询
export const selectOfflinePayWay = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/pay/selectOfflinePayWay`,
        params
    })
}

// 离线支付方式查询
export const selectPayMessage = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/pay/selectPayMessage`,
        data
    })
}

// 上传离线支付
export const downLine = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/pay/downLine`,
        data
    })
}
